package other.mvp.activity.manifest

fun mvpActivityManifestXml(
        applicationPackage: String?,
        activityClass: String,
        layoutName: String,
        packageName: String,
        isNewModule: Boolean
) = """
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="${packageName}">
    
    <application>
    """ + if (isNewModule) {
    """
            <activity android:name=".${activityClass}.${activityClass}Activity"
                android:launchMode="singleTask">
	            <intent-filter>
	                <action android:name="android.intent.action.MAIN" />
	                <category android:name="android.intent.category.LAUNCHER" />
	            </intent-filter>
	        </activity>
        """
} else {
    """
            <activity android:name=".${activityClass}.${activityClass}Activity"
                android:exported="true"
                android:launchMode="singleTask"/>
        """
} +
        """
    </application>
</manifest>
"""